$import("config");
$import("config.ConditionPanel");
$import("config.EditGridPanel");

/**
 * 模块的呈现对象
 */
config.Reader = function(){
	config.Reader.superclass.constructor.call(this);
};
Ext.extend(config.Reader, Ext.util.Observable, {
	//用于单独测试模块
	init:function(options){
		var mp = this.createPanel(options);
		options.height = 500;
		var viewport = new Ext.Viewport({
			border: false,
			items: [{
				items : [mp, new config.EditGridPanel(options)]}]
		});		
	},
	//供上级组件调用返回建立的模块面板
	createPanel:function(options){
		
		return new config.ConditionPanel(options);
	}
});
